package view;

import java.awt.Dimension;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.WindowConstants;
import org.jdesktop.application.Application;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class PanelAltaArea extends javax.swing.JPanel {

	/**
	* Auto-generated main method to display this 
	* JPanel inside a new JFrame.
	*/
	private JComboBox jComboBoxIDArea;
	private JComboBox jComboBoxIDLocal;
	private JComboBox jComboBoxIDResponsable;
	private static PanelAltaArea instancia;
	private JLabel jLabelAltaArea;
	private JLabel jLabelResponsable;
	private JButton jButtonCancelar;
	private JButton jButtonGuardar;
	private JTextField jTextFieldCantHS;
	private JLabel jLabelCantHS;
	private JLabel jLabelIDLocal;
	private JLabel jLabelIDArea;

	public static PanelAltaArea getInstancia(){
		if(instancia==null){
			instancia=new PanelAltaArea();
		}
		return instancia;
	}
	
	
	private PanelAltaArea() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			{
				ComboBoxModel jComboBoxMozoIDAreaModel = 
						new DefaultComboBoxModel(
								new String[] { "Item One", "Item Two" });
				jComboBoxIDArea = new JComboBox();
				this.add(jComboBoxIDArea);
				this.add(getJLabelIDArea());
				jComboBoxIDArea.setModel(jComboBoxMozoIDAreaModel);
				jComboBoxIDArea.setBounds(233, 27, 94, 21);
			}
			{
				ComboBoxModel jComboBoxMozoIDLocalModel = 
						new DefaultComboBoxModel(
								new String[] { "Item One", "Item Two" });
				jComboBoxIDLocal = new JComboBox();
				this.add(jComboBoxIDLocal);
				this.add(getJLabelIDLocal());
				jComboBoxIDLocal.setModel(jComboBoxMozoIDLocalModel);
				jComboBoxIDLocal.setBounds(233, 67, 94, 21);
			}
			{
				ComboBoxModel jComboBoxMozoIDResponsableModel = 
						new DefaultComboBoxModel(
								new String[] { "Item One", "Item Two" });
				jComboBoxIDResponsable= new JComboBox();
				this.add(jComboBoxIDResponsable);
			
				jComboBoxIDResponsable.setModel(jComboBoxMozoIDResponsableModel);
				jComboBoxIDResponsable.setBounds(233, 140, 94, 21);
			}
			
			this.add(getJLabelResponsable());
			this.add(getJLabelIDLocal());
			this.add(getJLabelCantHS());
			this.add(getJTextFieldCantHS());
			this.add(getJButtonGuardar());
			this.add(getJButtonCancelar());
			this.add(getJLabelAltaArea());
			this.add(getJLabelResponsable());
			this.setSize(400, 219);
			this.setLayout(null);
			Application.getInstance().getContext().getResourceMap(getClass()).injectComponents(this);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private JLabel getJLabelIDArea() {
		if(jLabelIDArea == null) {
			jLabelIDArea = new JLabel();
			jLabelIDArea.setBounds(65, 34, 86, 14);
			jLabelIDArea.setName("jLabelIDArea");
		}
		return jLabelIDArea;
	}
	
	private JLabel getJLabelIDLocal() {
		if(jLabelIDLocal == null) {
			jLabelIDLocal = new JLabel();
			jLabelIDLocal.setBounds(65, 70, 38, 14);
			jLabelIDLocal.setName("jLabelIDLocal");
		}
		return jLabelIDLocal;
	}
	
	private JLabel getJLabelCantHS() {
		if(jLabelCantHS == null) {
			jLabelCantHS = new JLabel();
			jLabelCantHS.setBounds(65, 106, 168, 14);
			jLabelCantHS.setName("jLabelCantHS");
		}
		return jLabelCantHS;
	}
	
	private JTextField getJTextFieldCantHS() {
		if(jTextFieldCantHS == null) {
			jTextFieldCantHS = new JTextField();
			jTextFieldCantHS.setBounds(233, 103, 94, 21);
		}
		return jTextFieldCantHS;
	}
	
	private JButton getJButtonGuardar() {
		if(jButtonGuardar == null) {
			jButtonGuardar = new JButton();
			jButtonGuardar.setBounds(103, 178, 80, 21);
			jButtonGuardar.setName("jButtonGuardar");
		}
		return jButtonGuardar;
	}
	
	private JButton getJButtonCancelar() {
		if(jButtonCancelar == null) {
			jButtonCancelar = new JButton();
			jButtonCancelar.setBounds(212, 178, 96, 21);
			jButtonCancelar.setName("jButtonCancelar");
		}
		return jButtonCancelar;
	}
	
	private JLabel getJLabelResponsable() {
		if(jLabelResponsable == null) {
			jLabelResponsable = new JLabel();
			jLabelResponsable.setBounds(65, 143, 135, 14);
			jLabelResponsable.setName("jLabelResponsable");
		}
		return jLabelResponsable;
	}
	
	private JLabel getJLabelAltaArea() {
		if(jLabelAltaArea == null) {
			jLabelAltaArea = new JLabel();
			jLabelAltaArea.setBounds(166, 7, 97, 14);
			jLabelAltaArea.setName("jLabelAltaArea");
		}
		return jLabelAltaArea;
	}

}
